//
//  VBHomeViewController.swift
//  VBo
//
//  Created by 赵世得 on 2016/10/22.
//  Copyright © 2016年 Zh. All rights reserved.
//

import UIKit


class VBHomeViewController: VBVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if !isLogin {
            visitorVc?.setUpVisitorViewInfo(imgName: nil, title: nil)
            return
        }
        setUpUI()
    }
    
    @objc private func leftClick(){
        print("👈")
    }
    
    @objc private func rightClick(){
        print("👉")
        let nextVc = VBTempViewController()
        nextVc.hidesBottomBarWhenPushed = true
        navigationController?.pushViewController(nextVc, animated: true)
        
    }
    
    private func setUpUI(){
        setNav()
    }
    
    private func setNav(){
        navigationItem.leftBarButtonItem = UIBarButtonItem(setImg: "navigationbar_pop", target: self, action: #selector(leftClick))
        navigationItem.rightBarButtonItem = UIBarButtonItem(setImg: "navigationbar_friendsearch", target: self, action: #selector(rightClick))
    }
    private func setTableViewInfo(){
//        tableView.dataSource = self
        
    }
}
